<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="{% url 'upload_file' %}" method="post" enctype="multipart/form-data">
    {% csrf_token %}
    姓名：<input type="text" name="username">
    <br>
    一寸照片：<input type="file" name="file">
    <br>
    <input type="submit" value="提交">
</form>

</body>
</html>